﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="ResetPassword.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.ResetPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%;">
        
        <tr>
            <td>
                <asp:ChangePassword ID="ChangePassword1" runat="server" 
                    CancelDestinationPageUrl="~/Default.aspx" 
                    ContinueDestinationPageUrl="~/Default.aspx" CssClass="table_mid" 
                    oncancelbuttonclick="ChangePassword1_CancelButtonClick" 
                    onchangedpassword="ChangePassword1_ChangedPassword" 
                    oncontinuebuttonclick="ChangePassword1_ContinueButtonClick" Width="340px">
                    <LabelStyle HorizontalAlign="Left" />
                    <CancelButtonStyle CssClass="btn" />
                    <ContinueButtonStyle CssClass="btn" />
                    <ChangePasswordButtonStyle CssClass="btn4" />
                    <ChangePasswordTemplate>
                        <table border="0" cellpadding="1" cellspacing="0" 
                            style="border-collapse:collapse;">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" style="width:340px;">
                                        <tr>
                                            <td align="center" colspan="2">
                                                Change Your Password</td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                                    AssociatedControlID="CurrentPassword">Password:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password" 
                                                    Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                                    ControlToValidate="CurrentPassword" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="NewPasswordLabel" runat="server" 
                                                    AssociatedControlID="NewPassword">New Password:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="NewPassword" runat="server" TextMode="Password" 
                                                    Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                                    ControlToValidate="NewPassword" ErrorMessage="New Password is required." 
                                                    ToolTip="New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                                    AssociatedControlID="ConfirmNewPassword">Confirm New Password:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password" 
                                                    Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                                    ControlToValidate="ConfirmNewPassword" 
                                                    ErrorMessage="Confirm New Password is required." 
                                                    ToolTip="Confirm New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                                    ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                                    Display="Dynamic" 
                                                    ErrorMessage="The Confirm New Password must match the New Password entry." 
                                                    ValidationGroup="ChangePassword1"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color:Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" width="121px">
                                                <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                                    CommandName="ChangePassword" CssClass="btn4" Text="Change Password" 
                                                    ValidationGroup="ChangePassword1" Enabled="False" />
                                            </td>
                                            <td>
                                                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                                    CommandName="Cancel" CssClass="btn" Text="Cancel" Enabled="False" />
                                            </td>
                                        </tr>
                                         <tr height="30px">
                                            <td align="center" colspan="2" style="color:Red;">
                                                <label>NOTE: You cannot change your intranet password from here.</label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </ChangePasswordTemplate>
                </asp:ChangePassword>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
